package manager;

import entities.EmployeeDepartmentHistory;
import entities.ViewScheduler;
import entities.ViewShiftRequest;
import java.util.ArrayList;
import java.util.Date;

public class DepartmentHeadDriver {

    private DataManager dataManager;

    public DepartmentHeadDriver(DataManager dataManager) {
        this.dataManager = dataManager;
    }
    
    public ArrayList<ViewShiftRequest> showEShiftRequest(int depID) {
        return dataManager.showSRByDID(depID);
    }
    
    public ArrayList<ViewScheduler> showViewHeadScheduler(int userid, int depid) {
        return dataManager.showViewHeadScheduler(userid, depid);
    }
    
    public ArrayList<ViewScheduler> showviewEScheduler(int did) {
        return dataManager.showViewEScheduler(did);
    }
    
    public boolean insertEmployeeDepH(EmployeeDepartmentHistory record) {
        return dataManager.insertEmployeeDepH(record);
    }
    
    public boolean updateEmployeeDepH(EmployeeDepartmentHistory record) {
        return dataManager.updateEmployeeDepH(record);
    }
    
    public boolean deleteEmployeeDepH(EmployeeDepartmentHistory record) {
        return dataManager.deleteEmployeeDepH(record);
    }
    
    public ViewScheduler showViewSchedulerByPK(int uid, int depid, int sid, Date date) {
        return dataManager.showViewSchedulerByPK(uid, depid, sid, date);
    }
    
    public boolean setStatusOfSR(int requestID, int status) {
        return dataManager.setStatusOfSR(requestID, status);
    }
    
    public ArrayList<ViewScheduler> showScheduler() {
        int employeeID = dataManager.getUser().getUserID();
        return dataManager.showViewSchedulerByEID(employeeID);
    }
}
